﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace idataplatform
{
    public partial class jfchangesel : Form
    {
        public jfchangesel()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            dateTimePicker1.Text = DateTime.Now.AddDays(-8).ToShortDateString();
            dateTimePicker2.Text = DateTime.Now.AddDays(-1).ToShortDateString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            pubcls.jfchgselSQL = "SELECT hyno,phoneno,jftime,jftype,jfint,operator,jfmark FROM jfchange_ipark where jftime >= '" + dateTimePicker1.Value.ToShortDateString() + "' AND jftime <= '" + dateTimePicker2.Value.AddDays(1).ToShortDateString() + "'";

            this.DialogResult = DialogResult.OK;
            this.Dispose();
            this.Close();
        }
    }
}
